﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Did
    {
        private int leg;
        public int Leg 
        {
            get { return leg; }
            set { this.leg = value;}
        }
        public void Walk()
        {
            Console.WriteLine("我可以走");
        }
        public void Eat()
        {
            Console.WriteLine("我可以吃饭");
        }
        public void Sleep()
        {
            Console.WriteLine("我可以睡觉");
        }
        public  virtual void Shout()
        {
            Console.WriteLine("我可以叫");
        }
    }
}
